ug pg mathematics short math tricks continued fractions